<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
  
			<p:panel header="Recherche">
			<p:messages />
				
				<p:accordionPanel effect="bounceslide" autoHeight="true">
			
	    		<p:tab title="Recherche simple">
						<h:outputLabel value="Nom :"></h:outputLabel>
		  				<h:inputText value="#{researchBean.namePers}" onchange="submit()"/>
		  			
				</p:tab>
	
				<p:tab title="test">
					
						<h:outputLabel value="nom :"></h:outputLabel>
						<h:inputText></h:inputText>
					
				
				</p:tab> 
		</p:accordionPanel>
					
					<p:dataTable id="dta" value="#{CaractPPComponent.listCaractPPsByName(researchBean.namePers.toUpperCase())}"  var="current" rows="15" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{CaractPPComponent.selectCaractPP(current.cppTiers)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{CaractPPComponent.editCaractPP(current.cppTiers)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{CaractPPComponent.confirmDeleteCaractPP(current.cppTiers)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cpptiers.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppTiers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppsexe.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppSexe}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppqualite.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppQualite}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppnompers.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppNomPers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppprenompers.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppPrenomPers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppnomjeunefille.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppNomJeuneFille}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppdatenaissance.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppDateNaissance}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppcsp.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppCsp}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppregimesocial.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppRegimeSocial}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppcodeprofession.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppCodeProfession}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppsituationfamille.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppSituationFamille}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppnombreenfants.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppNombreEnfants}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppnif.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppNif}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppdatesituation.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppDateSituation}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppdateetatphysique.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppDateEtatPhysique}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{caractppmsgs['caractpp.cppetatphysique.title']}" />
					</f:facet>
							<h:outputText value="#{current.cppEtatPhysique}"/>
				</p:column>
			</p:dataTable>
					
					
			</p:panel>

		</h:form>
			
	</ui:define>
	<a4j:log level="DEBUG" popup="false" width="400" height="200"/>
	
</ui:composition>